<?php
	
class Table_Film extends Zend_Db_Table_Abstract
{
    protected $_name    = 'film';
    protected $_primary = 'FILM_NUMERO';
    protected $_sequence = TRUE;
 	
	public function insertFilm($numVip, $titre, $dateReal){
		$data = array('VIP_NUMERO'=> $numVip, 'FILM_TITRE' => $titre, 
		'FILM_DATEREALISATION' => $dateReal);
		$this->insert($data);
	}
	
	public function getFilmNom($idVip){
    	
        return $this->fetchRow($this
        	->select()
 			->where('FILM_NUMERO= ?', $idVip));		
    }
	
	
	public function getFilmNum($idVip){
        return $this->fetchRow($this
        	->select()
 			->where('VIP_NUMERO= ?', $idVip));		
    } 
	public function supprFilm($id){
		$this->delete('VIP_NUMERO ='.(int)$id);
	}
	
	
}